function login_do(){
			toastr.options = {
			  "closeButton": true,
			  "debug": false,
			  "progressBar": true,
			  "positionClass": "toast-bottom-full-width",
			  "onclick": null,
			  "showDuration": "400",
			  "hideDuration": "1000",
			  "timeOut": "7000",
			  "extendedTimeOut": "1000",
			  "showEasing": "swing",
			  "hideEasing": "linear",
			  "showMethod": "fadeIn",
			  "hideMethod": "fadeOut"
            }

			//输入验证
            if($("#user_name").val() == ""){
                toastr.warning("用户名不能为空！");  
                $("#user_name").focus();  
                return false;  
            }  
			if($("#user_password").val() == ""){  
                toastr.warning("密码不能为空！");  
                $("#user_password").focus();  
                return false;  
            }           
            //js验证 `~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？  
            var pattern = new RegExp("[~'!@#$%^&*()-+_=:]");  
            if($("#user_name").val() != "" && $("#user_name").val() != null){  
                if(pattern.test($("#user_name").val())){  
                    toastr.error("用户名格式不正确！");  
                    $("#user_name").focus();  
                    return false;  
                }  
            }  
            if($("#user_password").val() != "" && $("#user_password").val() != null){  
                if(pattern.test($("#user_password").val())){  
                    toastr.error("密码格式不正确！");  
                    $("#user_password").focus();  
                    return false;  
                }  
            }
			var user_name = $('#user_name').val();
			var user_password = $('#user_password').val();
            //Ajax调用处理
            var login_do_return = $.ajax({
               type: "POST",
			   url: "index.php?m=user&c=user_login&a=login_do",
               data: "user_name="+user_name+"&user_password="+user_password,
               async: false
            }).responseText;
			if (login_do_return == "1"){
				toastr.info("用户名不存在，请核对后重新登陆！");
			} else if (login_do_return == "2") {
				toastr.warning("密码不正确，请核对后重新登陆！");
			} else if (login_do_return == "3") {
				toastr.success("恭喜您："+user_name+" ，登陆成功！");
				location.href="index.php?m=user&c=user_home&a=home_user_main";  
			} else {
				toastr.error("请勿提交非法数据！");
			}
}
